<?php
css_enqueue('single-button/sbutton');

function s_tab_head(){
	echo 
<<<s_tab_head
<style>
.jquery_tabs  div.tab_content,
.jquery_tabs  div.content{
border-top-width: 0px;
}
.jquery_tabs  div.tab_content .filter{
	padding-top:0px;
	padding-bottom:0px;
}
.jquery_tabs ul.s-button li a{
	min-width:40px;
}
.jquery_tabs ul.s-button{
padding: 5px 0 5px 0px;
border:0;
}
.s-button .content h3 {
display:none;
}
div.tabs-list-wrap{
text-align:center;
border: 1px solid #888;
margin-bottom:1px;
background: #E3EAF2;

filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#D0D9E4',EndColorStr='#E3EAF2');
background-image: -moz-linear-gradient(top, #E3EAF2,#D0D9E4);
background-image: -o-linear-gradient(top, #E3EAF2, #D0D9E4);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, to(#D0D9E4), from(#E3EAF2));
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#E3EAF2',EndColorStr='#D0D9E4');
}

.tab-content .filter{
	border-bottom: 0;
</style>
<script type="text/javascript">
$(
function(){
setTimeout(
function(){
	
	$("ul.tabs-list").wrap('<div class="tabs-list-wrap">').css('display','inline-block');
	$("ul.tabs-list").removeClass('tabs-list').addClass('s-button');
	$("ul.s-button li").click(function(){
		$(this).parent().find('li.current').removeClass('current');
		$(this).addClass('current');
		$(this).find('a').blur();
	})
	.mousedown(function(){
		$(this).addClass('mousedown')
	})
	.mouseup(function(){
		$(this).removeClass('mousedown')
	})
	.mouseout(function(){
		$(this).removeClass('mousedown')
	});
	
},50);
});
</script>
s_tab_head;
}

add_action('after_html', 's_tab_head');

?>